/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.capex.javaee.applets;

import java.util.*;
import java.applet.Applet;
//import java.event.*;
import java.awt.*;

public class App2 extends Applet {

    TextField t;
    public static App2 ref = null;

    @Override
    public void init() {
        ref = this;
        add(new panel());
    }

    class panel extends Panel {
//setSize(300,300);
        public panel() {
            setLayout(new GridLayout(1, 2));
            add(new Label("Recived"));
            add(t = new TextField(20));
        }
    }

    @Override
    public void setName(String str) {
        t.setText("Good morning Mr./Mrs." + str);
    }
}
